package control

import (
	"github.com/gin-gonic/gin"
	"mvip-route/beans"
	"mvip-route/service/damRed/impl"
)

type LogContr struct {
	LogService impl.LogService
}

func (lc LogContr) LogList(c *gin.Context) {
	logs, err := lc.LogService.GetLogs()
	if err != nil {
		beans.Fail(c, logs)
		return
	}
	beans.Success(c, logs)
}
